From: Sam Steingold Date: Mon, 26 Mar 2007 02:29:08 +0000 (+0000) Subject: (sigchld_handler): Delay by 1ms instead of 1s to X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~1338 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3f9ee87935a97dd4fac54975267cd520aa342b96;p=emacs.git (sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed). --- diff --git a/src/ChangeLog b/src/ChangeLog index 7ef604d7fc5..df1c7085b67 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-03-26 Sam Steingold + + * process.c (sigchld_handler): Delay by 1ms instead of 1s to + alleviate sluggishness (the original problem is still fixed). + 2007-03-25 Kim F. Storm * intervals.c (merge_properties): Use explicit loop instead of diff --git a/src/process.c b/src/process.c index 382db8b2578..b5e8f10bfab 100644 --- a/src/process.c +++ b/src/process.c @@ -6507,7 +6507,7 @@ sigchld_handler (signo) loadavg to 5-8(!) for ~10 seconds. See http://thread.gmane.org/gmane.emacs.devel/67722 or http://www.google.com/search?q=busyloop+in+sigchld_handler */ - sleep (1); + usleep (1000); errno = 0; pid = wait3 (&w, WNOHANG | WUNTRACED, 0); }